gdk: Always emit motion after enter
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 20 Nov 2017 17:54:40 +0000 (18:54 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 30 Nov 2017 18:26:48 +0000 (19:26 +0100)
commit3c40b217b9cf2969ab7cb253d23216c699d2626a
treed749f8e6e0b82f927e4556ce2b3f4e38f26983c7
parente7e047fc3fa7ae0fc9909e6dff00810973c1d3c2
gdk: Always emit motion after enter

After a pointer emulating GDK_TOUCH_END event triggering a fake leave
notify with GDK_CROSSING_TOUCH_END mode, pointer_under_window will be
unset, which will make the next motion/touch_update event to trigger
an enter notify event again.

Up till there, that's fine, however the motion event is just consumed
in favor of the just synthesized enter notify event. This is unexpected
to clients like spice-gtk that will only update coordinates from motion
events, sending both enter and motion is more consistent with X11 and
will make them happy.

https://bugzilla.gnome.org/show_bug.cgi?id=791039
gdk/gdkwindow.c